
if(WScript.arguments.length == 0)
{
	WScript.echo(
		"Usage:\tSendCommand.js command\r\n\r\n" + 
		"E.g.:" + 
		"\tSendCommand.js CH@1\r\n" + 
		"\tSendCommand.js VolumeDown\r\n");
	WScript.quit();
}

var pdvb = null;
try
{
	pdvb = GetObject("", "OSH.ProgDVB");
}
catch(e)
{
	WScript.echo("Can't connect to ProgDVB.");
	WScript.quit();
}

//WScript.echo(WScript.arguments(0));
	
pdvb.SendCommand(WScript.arguments(0));
